package com.realgodo.site.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springside.modules.orm.Page;

import com.realgodo.site.entity.application.show.Show;
import com.realgodo.site.service.application.ShowManager;

public class ShowController extends ControllerSupport{

	/***/
	private static final long serialVersionUID = 7342626363405985861L;

	@Autowired
	private ShowManager showManager;

	private Page<Show> showPage = new Page<Show>(20);

	public String index() throws Exception {
		Show showForm = new Show();
		showForm.setTop(Show.TOP_YES);
		showForm.setViedo(Show.VIEDO_NOT);
		showForm.setPrivacy(Show.PRIVACY_PUBLIC);
		showPage = this.showManager.findShows(showPage, showForm);
		return "show";
	}

	public Page<Show> getShowPage() {
		return showPage;
	}

	public void setShowPage(Page<Show> showPage) {
		this.showPage = showPage;
	}

}
